/*
 * @Author: 杨振洲 yzz0412521@163.com
 * @Date: 2022-11-29 08:45:30
 * @LastEditors: 杨振洲 yzz0412521@163.com
 * @LastEditTime: 2022-11-30 12:38:33
 * @FilePath: \tyc_admin\src\config\api.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { fetchPost, fetchGet, baseUrl, fetchPost1, fetchPost3, fetchPost5, fetchPostyang, fetchPostcompany, fetchPostcoupon, fetchPostcoupon1 } from "./require"
//场区
export function regionPageList (data) {
  return fetchPost("/gym/region/pageList", data)
}
export function getRegionList (data) {
  return fetchPost("/gym/region/list", data)
}
export function sitePageList (data) {
  return fetchPost("/gym/site/pageList", data)
}
export function regionAdd (data) {
  return fetchPost("/gym/region/save", data)
}
export function regionDel (data) {
  return fetchPost("/gym/region/del", data)
}
export function siteDel (data) {
  return fetchPost("/gym/site/del", data)
}
export function siteAdd (data) {
  return fetchPost("/gym/site/save", data)
}
export function schemePageList (data) {
  return fetchPost("/gym/scheme/pageList", data)
}
//项目列表
export function itemPageList (data) {
  return fetchPost("/gym/item/pageList", data)
}
export function schemeSave (data) {
  return fetchPost("/gym/scheme/save", data)
}
export function schemeShow (data) {
  return fetchPost("/gym/scheme/show", data)
}
export function schemeDel (data) {
  return fetchPost("/gym/scheme/del", data)
}
export function setPageList (data) {
  return fetchPost("/gym/regulation/setPageList", data)
}
export function addRegulation (data) {
  return fetchPost("/gym/scheme/addRegulation", data)
}
export function regulationSave (data) {
  return fetchPost("/gym/regulation/setSave", data)
}
export function regulationDel (data) {
  return fetchPost("/gym/regulation/setDel", data)
}

export function itemDel (data) {
  return fetchPost("/gym/item/del", data)
}

export function itemSave (data) {
  return fetchPost("/gym/item/save", data)
}
export function bannerPageList (data) {
  return fetchPost("/gym/banner/pageList", data)
}
export function bannerSave (data) {
  return fetchPost("/gym/banner/save", data)
}
export function bannerDel (data) {
  return fetchPost("/gym/banner/del", data)
}

export function cardLevelPageList (data) {
  return fetchPost("/gym/cardLevel/pageList", data)
}
export function cardLevelSave (data) {
  return fetchPost("/gym/cardLevel/save", data)
}
export function cardLevelDel (data) {
  return fetchPost("/gym/cardLevel/del", data)
}
export function cardLevelUpdate (data) {
  return fetchPost("/gym/cardLevel/update", data)
}
export function cardLevelShow (data) {
  return fetchPost("/gym/cardLevel/show", data)
}

export function orderPageList (data) {
  return fetchPost("/gym/order/pageList", data)
}
export function orderDetail (data) {
  return fetchPost("/gym/order/getDetailById", data)
}
export function rechargePageList (data) {
  return fetchPost("/gym/recharge/position/pageList", data)
}
export function memberPageList (data) {
  return fetchPost("/gym/member/pageList", data)
}
export function rechargeSave (data) {
  return fetchPost("/gym/recharge/position/save", data)
}
export function getMemberInfo (data) {
  return fetchPost("/gym/member/getMemberInfo", data)
}
export function getTotalBalance (data) {
  return fetchPost("/gym/member/getTotalBalance", data)
}
export function couponMemberList (data) {
  return fetchPost("/gym/member/getMemberCouponList", data)
}
export function balanceAdd (data) {
  return fetchPost("/gym/recharge/add/balance", data)
}
export function rechargePage (data) {
  return fetchPost("/gym/recharge/pageList", data)
}
export function cpbillPage (data) {
  return fetchPost("/gym/cpbill/select", data)
}
export function rechargeDetail (data) {
  return fetchPost("/gym/recharge/getDetailById", data)
}
// export function settingBookGround (data) {
//   return fetchPost("/gym/book/settingBookGround", data)
// }
export function rechargeConfirm (data) {
  return fetchPost("/gym/recharge/confirm", data)
}
export function updateMemberInfo (data) {
  return fetchPost("/gym/member/updateMemberInfo", data)
}
export function getMemberBillList (data) {
  return fetchPost("/gym/member/getMemberBillList", data)
}
export function getHomeData (data) {
  return fetchPost("/gym/home/getHomeData", data)
}

export function getBookGround (data) {
  return fetchPost("/gym/book/getBookGround", data)
}
//根据手机号获取会员
export function getMemberInfoByPhone (data) {
  return fetchPost("/gym/member/getMemberInfoByPhone", data)
}


export function orderPut (data) {
  return fetchPost("/gym/order/put", data)
}
//表格操作
export function settingBookGround (data) {
  return fetchPost("/gym/book/settingBookGround", data)
}
//确认收款
export function confirm (data) {
  return fetchPost("/gym/order/confirm", data)
}
export function refund (data) {
  return fetchPost("/gym/order/refund", data)
}
export function giftCardList (data) {
  return fetchPost("/gym/service/card/pageList", data)
}
export function giftCardAdd (data) {
  return fetchPost("/gym/service/card/save", data)
}
export function giftCardDel (data) {
  return fetchPost("/gym/service/card/del", data)
}

export function giftCardDisable (data) {
  return fetchPost("/gym/service/card/disable", data)
}
export function memberServiceCardSummary (data) {
  return fetchPost("/gym/service/card/memberServiceCardSummary", data)
}
export function versionPage (data) {
  return fetchPost("/gym/version/pageList", data)
}
export function versionShow (data) {
  return fetchPost("/gym/version/show", data)
}
export function versionSave (data) {
  return fetchPost("/gym/version/save", data)
}
export function versionDel (data) {
  return fetchPost("/gym/version/del", data)
}
export function getCutPrice (data) {
  return fetchPost("/gym/regulation/getCutPrice", data)
}
export function delcouponMemberList (data) {
  return fetchPost("/memberInfo/deleteMemberCouponById", data)
}
export function playCardPageList (data) {
  return fetchPost("/gym/play/card/pageList", data)
}
export function playCardSave (data) {
  return fetchPost("/gym/play/card/save", data)
}
export function playCardDel (data) {
  return fetchPost("/gym/play/card/del", data)
}
export function playCardShow (data) {
  return fetchPost("/gym/play/card/show", data)
}
export function playCardList (data) {
  return fetchPost("/gym/play/card/list", data)
}
export function cardOrder (data) {
  return fetchPost("/gym/card/order/pageList", data)
}
export function cardOrderDetail (data) {
  return fetchPost("/gym/card/order/show", data)
}
export function saleCardPageList (data) {
  return fetchPost("/gym/sale/card/pageList", data)
}
export function saleCardWrite (data) {
  return fetchPost("/gym/sale/card/cardWriteOff", data)
}
export function cardPageListLog (data) {
  return fetchPost("/gym/sale/card/pageList/log", data)
}
export function cardPush (data) {
  return fetchPost("/gym/sale/card/push", data)
}
export function getCouponValue (data) {
  return fetchPost("/gym/member/getCouponValue", data)
}
export function dailyCardpageList (data) {
 return fetchPost("/gym/dailyCard/pageList", data)
}
export function dailyCardSave (data) {
 return fetchPost("/gym/dailyCard/save", data)
}
export function dailyCardShow (data) {
 return fetchPost("/gym/dailyCard/show", data)
}
export function dailyCardDel (data) {
 return fetchPost("/gym/dailyCard/del", data)
}
export function memberDailyCardPageList (data) {
 return fetchPost("/gym/memberDailyCard/pageList", data)
}
export function memberDailyCardShow (data) {
 return fetchPost("/gym/memberDailyCard/show", data)
}
export function memberDailyCardPic (data) {
 return fetchPost("/gym/memberDailyCard/upload/pic", data)
}
export function dailyRechargePageList (data) {
 return fetchPost("/gym/dailyRecharge/pageList", data)
}
// 赛事管理
export function gamePageList (data) {
  return fetchPost("/gym/game/pageList", data)
 }
 export function gameDel (data) {
  return fetchPost("/gym/game/del", data)
 }
 export function gameTemplatePageList (data) {
  return fetchPost("/gym/gameTemplate/pageList", data)
 }
 export function gameTemplateShow (data) {
  return fetchPost("/gym/gameTemplate/show", data)
 }
 export function gameSave (data) {
  return fetchPost("/gym/game/save", data)
 }
 export function gameShow (data) {
  return fetchPost("/gym/game/show", data)
 }
 export function gameTemplateSaveInfo (data) {
  return fetchPost("/gym/gameTemplate/save/info", data)
 }
 export function gameTemplateDel (data) {
  return fetchPost("/gym/gameTemplate/del", data)
 }
 export function gameTemplateShowInfo (data) {
  return fetchPost("/gym/gameTemplate/show/info", data)
 }
 export function gameOrderPageList (data) {
  return fetchPost("/gym/gameOrder/pageList", data)
 }
 export function pushPageList (data) {
  return fetchPost("/gym/card/order/push/pageList", data)
 }
 export function exportGameOrder (data) {
  return fetchPost1("/gym/gameOrder/exportGameOrder", data)
 }